package com.wchat;

import com.wchat.configurer.Swagger2;
import com.wchat.serviceimpl.ChatService;
import javafx.application.Application;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication
//@ComponentScan(basePackages = {"com.wchat"})
@Import({Swagger2.class})
public class SellApplication {

	public static void main(String[] args) {

		SpringApplication.run(SellApplication.class, args);

//		SpringApplication springApplication = new SpringApplication(Application.class);
//		ConfigurableApplicationContext configurableApplicationContext = springApplication.run(args);
//		ChatService.setApplicationContext(configurableApplicationContext);
	}
}
